module dianji(
input up,
input down,
input stop,
output reg line1,
output reg line2
);

always@(*)
begin
	/*case ({up,down,stop})
	100: begin
			line1 <=1;
			line2 <=0;
		  end
	
	010: begin
			line1 <=0;
			line2 <=1;
		  end
		  
	101: begin
			line1 <=0;
			line2 <=0;
		  end
		  
	011: begin
			line1 <=0;
			line2 <=0;
		  end
		  
	000: begin
			line1 <=0;
			line2 <=0;
		  end
		  
	default 
		  begin
			line1 <=0;
			line2 <=0;
		  end
	endcase*/
	if (stop == 1)
		  begin
			line1 <=1;
			line2 <=1;
		  end
	else if (up == 1)
		  begin
			line1 <=1;
			line2 <=0;
		  end
	else if (down == 1)
		  begin
			line1 <=0;
			line2 <=1;
		  end
	else 
		  begin
			line1 <=1;
			line2 <=1;
		  end
		  
		  
end
endmodule


